<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib  prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>专项附加扣除管理</title>
 <link href="css/table.css" rel="stylesheet" type="text/css">
 <link href="css/button.css" rel="stylesheet" type="text/css">
</head>
<body>
<section><a href="logout">注销</a>&nbsp;&nbsp;您现在的位置：<a href="admin.jsp">首页</a>
&gt;&gt;专项附加扣除管理</section>
<table class="altrowstable" id="alternatecolor" style="margin:auto">
<caption>专项附加扣除记录表</caption>
	<tr>
		<th>员工编号</th>
		<th>员工姓名</th>
		<th>在读子女数量(1000/人/月)</th>
		<th>本人继续教育(400/月)</th>
		<th>首套房子房贷在还(1000/月)</th>
		<th>现住地为租房(800/月)</th>
		<th>赡养60岁以上老人(2000/人/月)</th>
		<th>专项附加扣除汇总</th>
		<th>操作</th>
	</tr>
	<c:forEach items="${list}" var="special">
		<tr>
			<td>${special.staffSno}</td>
			<td>${special.name}</td>
			<td>${special.childNum}</td>
			<td>${special.conEdu}</td>
			<td>${special.houseLoan}</td>
			<td>${special.rent}</td>
			<td>${special.old}</td>
			<td>${special.total}</td>
			<td>
				<a href="/salary_manage/special?method=findById&staffSno=${special.staffSno}">修改</a>
				<%--修改分为2步：先根据id在servlet中找到那个学生，找到后把此学生的信息传到update.jsp页面--%> 
			</td>
		</tr>
	</c:forEach>
</table>
<br/>
<div class="demo_con">
<button type="button" class="button blue rarrow" onclick="window.location.href = '/salary_manage/special?method=add'">添加员工信息</button>
<br/>
<button type="button" class="button blue larrow" onclick="window.location.href = 'admin.jsp'">返回首页</button>
</div>
<p>${message}</p>
</body>
</html>